package com.ryder.petmatediarybackend.module.social.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 社交动态详情VO
 *
 * @author Ryder
 * @version 1.0
 * @since 1.0
 * 更新日期: 2025-10-31 03:40:00
 */
@Data
@Schema(description = "社交动态详情VO")
public class PostVO {

    @Schema(description = "动态ID")
    private String id;

    @Schema(description = "发布用户ID")
    private String userId;

    @Schema(description = "用户昵称")
    private String userName;

    @Schema(description = "用户头像")
    private String userAvatar;

    @Schema(description = "关联宠物ID")
    private String petId;

    @Schema(description = "宠物名称")
    private String petName;

    @Schema(description = "宠物头像")
    private String petAvatar;

    @Schema(description = "动态类型：1=宠物圈子 2=社交小圈子 3=店铺圈子")
    private Integer postType;

    @Schema(description = "圈子ID")
    private String circleId;

    @Schema(description = "动态内容")
    private String content;

    @Schema(description = "图片URL列表")
    private List<String> mediaUrls;

    @Schema(description = "隐私级别：1=公开 2=私密")
    private Integer privacyLevel;

    @Schema(description = "位置信息")
    private String location;

    @Schema(description = "点赞数")
    private Integer likeCount;

    @Schema(description = "转发数")
    private Integer forwardCount;

    @Schema(description = "浏览数")
    private Integer viewCount;

    @Schema(description = "是否置顶：0=否 1=是")
    private Integer isTop;

    @Schema(description = "是否推荐：0=否 1=是")
    private Integer isRecommended;

    @Schema(description = "审核状态：0=待审核 1=审核通过 2=审核驳回")
    private Integer auditStatus;

    @Schema(description = "状态：1=正常 2=已隐藏 3=违规")
    private Integer status;

    @Schema(description = "当前用户是否已点赞")
    private Boolean hasLiked;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;
}

